<?php


    // Author: Tomasz Durka
    // Date: 4th April 2007
    // Prints out id="{$id}" code snippet
    
    
  function entry_id ($item, $embed = true) {
    
    $id = strtolower(get_class($item)) . '_entry_' . $item->id;
    if ($embed) {
      return "id=\"{$id}\"";
    } else {
      return $id;
    }
  }

?>